//
//  AddChildVCSegue.m
//  iOSUI
//
//  Created by Zhao Yun on 12/26/13.
//  Copyright (c) 2013 ainemo. All rights reserved.
//

#import "AddChildVCSegue.h"

@implementation AddChildVCSegue

-(void)perform
{
    UIViewController *destVC = self.destinationViewController;
    UIViewController *srcVC = self.sourceViewController;
    destVC.view.frame = srcVC.view.bounds;
    destVC.view.tag = 1090;
    destVC.view.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
    [srcVC.view addSubview:destVC.view];
    [srcVC addChildViewController:destVC];
}

@end
